package com.fanshilz.flower2025.apps.admin.project.resp;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.sql.Timestamp;

@Data
public class AttachmentDetailResp {

    @Schema(description = "文件ID")
    private Long fileId;

    @Schema(description = "文件path")
    private String filePath;

    public void setFilePath(String filePath) {
        this.filePath = "https://file.fanshilz.com/" + filePath;
    }

    @Schema(description = "归属对象类型")
    private Integer objType;

    @Schema(description = "归属对象ID")
    private Integer objId;

    private String objIdStr;

    /**
     * 文件后缀
     */
    private String fileSuffix;

    private Integer fileSize;

    private String originalFileName;

    private String fileType;

    private Timestamp createTime;

    private Long createUserId;

    private String createUserName;

    private Long updateUserId;

    private Timestamp updateTime;

    private String updateUserName;


}
